import request from '@/utils/request'

//  学院分页
export function getCollegeList(params) {
  return request({
    url: '/base/college/listPage',
    method: 'get',
    params
  })
}
// 更新学院
export function updateCollegeField(params) {
  return request({
    url: '/base/college/updateById',
    method: 'put',
    data: params
  })
}

// 批量删除 逗号隔开的id字符串
export function bathDeleteCollege(ids) {
  return request({
    url: `/base/college/deleteByIds/${ids}`,
    method: 'delete'
  })
}
// 新增学院
export function addCollege(data) {
  return request({
    url: `/base/college/add`,
    method: 'put',
    data
  })
}
